﻿@{
    ViewBag.Title = "EditUser";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<h2>
    EditUser</h2>
@using (Html.BeginForm())
{
    <div class="editor-label">
        Tên đăng nhập
    </div>
    <div class="editor-field">
        @Html.TextBox("UserName", ViewData["UserName"], new { disabled = "disabled" })
    </div>
    <div class="editor-label">
        Email
    </div>
    <div class="editor-field">
        @Html.TextBox("Email", ViewData["Email"], new { disabled = "disabled" })
    </div>
    <div class="editor-label">
        Quyền user
    </div>
    <div class="editor-field">
        @Html.DropDownList("RoleId", (SelectList)ViewBag.Roles, new { style = "width: 300px" })
    </div>
    
    <p>
        <input type="submit" value="Lưu" />
    </p>
}
<div>
    @Html.ActionLink("Trang chủ", "ManagesUsers")
</div>
